﻿#parse("partials/headerpopup.html")
<script type="text/javascript">
    jQuery(document).ready(function () {
        OnloadDialog();
        function OnloadDialog() {
            jQuery("#dialog-confirm").dialog({
                resizable: false,
                draggable: false,
                closeText: 'hide',
                height: 180,
                modal: true,
                buttons: {
                    "Ok": function () {
                        try {
                            // Close parent redirect parent to login
                            //ssds;
                            parent.ReLogin();
                            
                        } catch (e) {
                            window.location = rooturl + "home/default/login/";
                        }
                    }
                }
            });

        }
    });
</script>
<!-- Main Container Start -->
<div id="dialog-confirm" title="Confirmation" style="display: none">
    <p>
    </p>
    <p>
        <span class="ui-icon ui-icon-alert" style="float: left; margin: 3px 20px 40px 50px;">
        </span>
        Session has timeout.
        <br />
        Do you want to Re-Login?
    </p>
</div>
<div id="mws-container" class="clearfix">
    <!-- Inner Container Start -->
    <div class="container">
    </div>
    <!-- Inner Container End -->
#parse("partials/headerpopup.html")